package com.ns.scs.my.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 我的评论
 *
 * @author : liaowei
 * @version : v1.0.0
 * @since : 2024-12-21 13:03:44
 **/
@Data
@ToString
public class MyCommentsVO implements Serializable {

    @Serial
    private static final Long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 内容
     */
    private String note;

    /**
     * 审核状态 -1 草稿 0 待审核  1 未通过  2 异常
     */
    private Integer status;

    /**
     * 评论时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
